 {
        
       cc.Class({
            extends: cc.Component,
            properties: {
                spHead: {
                    default: null,
                    type: cc.Sprite
                },
                spBigWin: {
                    default: null,
                    type: cc.Sprite
                },
                labName: {
                    default: null,
                    type: cc.Label
                },
                layoutCoinJia: {
                    default: null,
                    type: cc.Node
                },
                layoutCoinJian: {
                    default: null,
                    type: cc.Node
                },
                labCoinNumJia: {
                    default: null,
                    type: cc.Label
                },
                labCoinNumJian: {
                    default: null,
                    type: cc.Label
                },
                spArrow: {
                    default: null,
                    type: cc.Sprite
                },
                spBg: {
                    default: null,
                    type: cc.Sprite
                }
            },
            start: function () {
            },
            bindData: function (e, t) {
                this.spArrow.node.active = !1;
                var n = Global.tableModel.toLocalSeatIndex(e.seatId), o = Global.tableModel.getPlayerModel(n);
                if (o) {
                    var i = e.totalScore, a = null;
                    i >= 0 ? (this.layoutCoinJian.active = !1, a = this.labCoinNumJia) : (this.layoutCoinJia.active = !1,
                        a = this.labCoinNumJian);
                    var r = i >= 0 ? "+" : "";
                    a.string = r + Global.utils.exchangeToWan(i);
                    var s = "";
                    n == Global.config.SEAT_DOWN && (s = "[本家]", this.spArrow.node.active = !0, Global.spriteAtlas.setSpriteFrame(this.spBg, "Texture/common", "AC_mybase")),
                    n == Global.config.SEAT_RIGHT && (s = "[下家]", Global.spriteAtlas.setSpriteFrame(this.spBg, "Texture/common", "AC_othersbase")),
                    n == Global.config.SEAT_UP && (s = "[对家]", Global.spriteAtlas.setSpriteFrame(this.spBg, "Texture/common", "AC_othersbase")),
                    n == Global.config.SEAT_LEFT && (s = "[上家]", Global.spriteAtlas.setSpriteFrame(this.spBg, "Texture/common", "AC_othersbase"));
                    var l = Global.utils.getFixString(s + o.getName(), 10);
                    this.labName.string = l;
                    var c = this;
                    cc.loader.load({
                        url: o.getPic(),
                        type: "png"
                    }, function (e, t) {
                        c.spHead.spriteFrame = new cc.SpriteFrame(t), c.spHead.node.width = 83, c.spHead.node.height = 83;
                    });
                }
                this.spBigWin.node.active = t;
            }
        })
    }